<template>
    <div id="app">
        Count is {{$store.state.count}}
        <br/>
        <button @click="increment">+5</button>
        <br/>
        <button @click="decrement">-3</button>
    </div>
</template>

<script>
    import { mapGetters, mapActions } from 'vuex'
    export default {
        name: "",

        computed: mapGetters([//与vuex中的getters关联

        ]),

        methods: mapActions([//与vuex中的actions关联
            'increment',
            'decrement'
        ])
    }
</script>

<style scoped>

</style>